package demo02;

public class emp {
    private String empname;
    private String empid;
    private String deptid;
    private String empsalary;

    @Override
    public String toString() {
        return "emp{" +
                "empname='" + empname + '\'' +
                ", empid='" + empid + '\'' +
                ", deptid='" + deptid + '\'' +
                ", empsalary='" + empsalary + '\'' +
                '}';
    }

    public String getEmpname() {
        return empname;
    }

    public void setEmpname(String empname) {
        this.empname = empname;
    }

    public String getEmpid() {
        return empid;
    }

    public void setEmpid(String empid) {
        this.empid = empid;
    }

    public String getDeptid() {
        return deptid;
    }

    public void setDeptid(String deptid) {
        this.deptid = deptid;
    }

    public String getEmpsalary() {
        return empsalary;
    }

    public void setEmpsalary(String empsalary) {
        this.empsalary = empsalary;
    }

    public emp(String empname, String empid, String deptid, String empsalary) {
        this.empname = empname;
        this.empid = empid;
        this.deptid = deptid;
        this.empsalary = empsalary;
    }

    public emp() {
    }
}
